using Godot;

namespace Box.Base {
    public interface IDataCanvas {
        public int Width {get;}
        public int Height {get;}
        public ImageTexture ToImage();
        public uint GetPixel(int x,int y);
        public void SetPixel(uint data,int x,int y);
        public void DrawLine(uint data,Vector2 p0,Vector2 p1,int w = 1);
        public void DrawRectangle(uint data,Rect2 rect,bool is_fill);
        public void DrawCircle(uint data,Vector2 p,float r,bool is_fill);
        public void DrawPolygon(uint data,Vector2[] points,bool is_fill);
    }
}